using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Toon.Models.Characters;

namespace Toon.Models.Tests.Characters
{
    public partial class SkillTests
    {
                    
                    
                    [TestMethod]
                    public void SkillTests_Property_SkillPoints_PropertyAssigned ()
                    {
                        var objectUnderTest = CreateObject();
                        System.Int32 expectedValue;
                    
                        
                        try
                        {
                            expectedValue = Int32.MinValue;
                            objectUnderTest.SkillPoints = expectedValue;
                            Assert.AreEqual(expectedValue, objectUnderTest.SkillPoints);;
                        }
                        catch (ArgumentException)
                        {
                            //OK
                            return;
                        }
                        
                        
                        try
                        {
                            expectedValue = (System.Int32)(-1);
                            objectUnderTest.SkillPoints = expectedValue;
                            Assert.AreEqual(expectedValue, objectUnderTest.SkillPoints);;
                        }
                        catch (ArgumentException)
                        {
                            //OK
                            return;
                        }
                        
                        
                        try
                        {
                            expectedValue = (System.Int32)0;
                            objectUnderTest.SkillPoints = expectedValue;
                            Assert.AreEqual(expectedValue, objectUnderTest.SkillPoints);;
                        }
                        catch (ArgumentException)
                        {
                            //OK
                            return;
                        }
                        
                        
                        try
                        {
                            expectedValue = (System.Int32)1;
                            objectUnderTest.SkillPoints = expectedValue;
                            Assert.AreEqual(expectedValue, objectUnderTest.SkillPoints);;
                        }
                        catch (ArgumentException)
                        {
                            //OK
                            return;
                        }
                        
                        
                        try
                        {
                            expectedValue = Int32.MaxValue;
                            objectUnderTest.SkillPoints = expectedValue;
                            Assert.AreEqual(expectedValue, objectUnderTest.SkillPoints);;
                        }
                        catch (ArgumentException)
                        {
                            //OK
                            return;
                        }
                        
                    
                    }    
                    
                    
                    
                    [TestMethod]
                    public void SkillTests_Property_PlotPoints_PropertyAssigned ()
                    {
                        var objectUnderTest = CreateObject();
                        System.Int32 expectedValue;
                    
                        
                        try
                        {
                            expectedValue = Int32.MinValue;
                            objectUnderTest.PlotPoints = expectedValue;
                            Assert.AreEqual(expectedValue, objectUnderTest.PlotPoints);;
                        }
                        catch (ArgumentException)
                        {
                            //OK
                            return;
                        }
                        
                        
                        try
                        {
                            expectedValue = (System.Int32)(-1);
                            objectUnderTest.PlotPoints = expectedValue;
                            Assert.AreEqual(expectedValue, objectUnderTest.PlotPoints);;
                        }
                        catch (ArgumentException)
                        {
                            //OK
                            return;
                        }
                        
                        
                        try
                        {
                            expectedValue = (System.Int32)0;
                            objectUnderTest.PlotPoints = expectedValue;
                            Assert.AreEqual(expectedValue, objectUnderTest.PlotPoints);;
                        }
                        catch (ArgumentException)
                        {
                            //OK
                            return;
                        }
                        
                        
                        try
                        {
                            expectedValue = (System.Int32)1;
                            objectUnderTest.PlotPoints = expectedValue;
                            Assert.AreEqual(expectedValue, objectUnderTest.PlotPoints);;
                        }
                        catch (ArgumentException)
                        {
                            //OK
                            return;
                        }
                        
                        
                        try
                        {
                            expectedValue = Int32.MaxValue;
                            objectUnderTest.PlotPoints = expectedValue;
                            Assert.AreEqual(expectedValue, objectUnderTest.PlotPoints);;
                        }
                        catch (ArgumentException)
                        {
                            //OK
                            return;
                        }
                        
                    
                    }    
                    
    }
}

